package com.sunnada.demo.log.dao;

import com.sunnada.demo.log.bean.TrackLog;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: mybatisproject2
 * @description: 操作日志交互
 * @author: 李瑞益
 * @create: 2018-10-28 14:26
 **/
@Repository
public interface TrackLogRepository extends MongoRepository<TrackLog,String> {

    List<TrackLog> findByUserNameAndOperationType(String userName, String operationType, Pageable pageable);
}
